import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/index'
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'
// import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// import ArcoVue from '@arco-design/web-vue'
// import ArcoVueIcon from '@arco-design/web-vue/es/icon'
// import '@arco-design/web-vue/dist/arco.css'

const app = createApp(App)

app.use(router)
if ((window as any).ElementPlus) {
  app.use((window as any).ElementPlus)
}
// app.use(ElementPlus)
// app.use(ArcoVue)
// app.use(ArcoVueIcon)

// for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
//   app.component(key, component)
// }

app.mount('#app').$nextTick(() => {
  // Use contextBridge
})
